/*
 * Geometry.h
 *
 *  Created on: May 30, 2011
 *      Author: Ernest Mashele <mashern@gmail.com>
 */

#ifndef GEOMETRY_H_
#define GEOMETRY_H_

#include "Helper.h"

namespace ptn
{

struct Vector
{
	D3DXVECTOR3 position;
	D3DXVECTOR2 texcoord;
	D3DXVECTOR3 normal;
};

const D3D10_INPUT_ELEMENT_DESC layout[] = { {
		"POSITION",
		0,
		DXGI_FORMAT_R32G32B32_FLOAT,
		0,
		0,
		D3D10_INPUT_PER_VERTEX_DATA,
		0 }, {
		"TEXCOORD",
		0,
		DXGI_FORMAT_R32G32_FLOAT,
		0,
		D3D10_APPEND_ALIGNED_ELEMENT,
		D3D10_INPUT_PER_VERTEX_DATA,
		0 }, {
		"NORMAL",
		0,
		DXGI_FORMAT_R32G32B32_FLOAT,
		0,
		D3D10_APPEND_ALIGNED_ELEMENT,
		D3D10_INPUT_PER_VERTEX_DATA,
		0 }, };

const UINT numElements = sizeof(layout) / sizeof(layout[0]);
}

#endif /* GEOMETRY_H_ */
